"""
Remember the episode currently being played.
"""

class CurrentSong:
  def __init__(self):
    self.name = ""
    self.episode = None
    self.layout = None
    self.widget = None
    self.podcast_widget = None
    self.feed = None

  def SetEpisode(self, feed, episode):
    self.name = episode.title()
    self.podcast_widget.SetCaption("%s" % feed.title())
    self.widget.SetCaption("%s: 0min of 00min" % self.name[:35])
    self.layout.InvalidateSize()
    self.episode = episode
    self.feed = feed
    print "** SetEpisode: feed=",feed,", episode=",episode

